home *** CD-ROM | disk | FTP | other *** search
- Path: news.umbc.edu!not-for-mail
- From: schlein@umbc.edu (Jonas J. Schlein)
- Newsgroups: comp.lang.c
- Subject: Re: Clearing the keyboard buffer
- Date: 22 Jan 1996 17:56:44 -0500
- Organization: University of Maryland Baltimore County
- Message-ID: <4e14nc$spp@umbc9.umbc.edu>
- References: <4dtqi4$60u@cdc2.cdc.net> <4e07uh$oqq@huron.eel.ufl.edu>
- NNTP-Posting-Host: umbc9.umbc.edu
- NNTP-Posting-User: schlein
-
- Daniel P Hudson <afn03257@freenet2.freenet.ufl.edu> wrote:
- >> I'm using Turbo C++ v. 3.1 and I need to be able to clear the keyboard
-
- <snip>
-
- > Huh? Once the buffer is caught up, it shouldn't continue, but you
- > might want to try fflush(stdin); just the same.
-
- Why would he want to try something which is guaranteed to introduce
- undefined behavior to his program? The fflush() function is defined
- only for output streams. Please read question 12.26 in the c.l.c. FAQ.
- --
- "If it wasn't for C, we would be using BASI, PASAL, and OBOL."
-
- Jonas J. Schlein (schlein@gl.umbc.edu)
-